var _centerInit = false;
$(function() {
    if (_centerInit) return;
    _centerInit = true;
    $(".with-title-input .see").click(function(e) {
        var e = $(e.currentTarget);
        var p = e.parent().parent().find("input");
        
        var type = p.attr("type");
        if (type == 'password') {
            p.attr("type", 'text');
            e.find('img').attr("src", "../public/all/images/phone/see2.png");
        }
        else {
            p.attr("type", 'password');
            e.find('img').attr("src", "../public/all/images/phone/see.png");
        }
    });

    $(".logout").click(function() {
        startLoading();
        ME.logout(function() {
            window.location.href = "index.html";
        });
    });
});
